added #define NOMINMAX to player.cpp